HAL HASH state and error functions migration

This section provides information about the HAL HASH state and error functions migration.

HAL HASH get state

HAL1

HAL2

HAL_HASH_GetState(HASH_HandleTypeDef *hhash);
HAL_HASH_GetState(const hal_hash_handle_t *hhash);

Related concept: Revised and optimized HAL state machine


HAL HASH get error

HAL1

HAL2

HAL_HASH_GetError(HASH_HandleTypeDef *hhash);
HAL_HASH_GetLastErrorCodes(const hal_hash_handle_t *hhash);

Related concept: Revised and optimized HAL error management


HAL HASH get status

HAL1

HAL2

HAL_StatusTypeDef HAL_HASH_GetStatus(const HASH_HandleTypeDef *hhash);
Removed:
In HAL2, the status is no more available in the handle structure,
instead, the status is reported by the direct function return.